package com.jintian.smart.kernel.switching.event;

import com.jintian.smart.kernel.switching.entity.ETLLoadJob;
import org.springframework.context.ApplicationEvent;

public class AfterSwitchingLoadEvent extends ApplicationEvent {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private final Object loadData;

	public AfterSwitchingLoadEvent(ETLLoadJob loadJob, Object loadData) {
		super(loadJob);
		this.loadData = loadData;
	}

	public ETLLoadJob getETLLoadJob() {
		return ETLLoadJob.class.cast(this.getSource());
	}

	public Object getLoadData() {
		return this.loadData;
	}
}
